package hibernateUtil;

import org.hibernate.Session;

import MemoryDB.YuanTable;
import db.GenericHibernateDAO;
import db.HibernateUtil;

public class PlayerserviceDao extends GenericHibernateDAO<Playerservice,Integer> {

	public YuanTable GetServiceAllToTable() {
		
		return GetTable("from Playerservice");
	}

	public YuanTable GetInfoByVipLvl(int vipLvl)
	{
		return GetTable("from Playerservice where VIPType=?", vipLvl);
	}
	@Override
	protected Session getSession()
	{
		// TODO Auto-generated method stub
		return HibernateUtil.getDarkSword2SessionFactory().getCurrentSession();
	}
}
